﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _3D_Processor
{
    static class AppSound
    {
        private static string SoundPath;
        private static System.Media.SoundPlayer WavPlayer;

        public static void Initialize()
        {
            //Assume that the sound files are on the base directory
            SoundPath = System.Windows.Forms.Application.StartupPath;
            if (SoundPath[SoundPath.Length - 1] != '\\')
            {
                SoundPath += "\\";
            }
            SoundPath += "sound\\camsound.wav";
            WavPlayer = new System.Media.SoundPlayer(SoundPath);
        }

        public static void Play()
        {
            WavPlayer.Play();
        }
    }
}
